package com.yyn.Learning.client;

import com.yyn.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(name = "service-ucenter",fallback = UcenterClientImpl.class)
@Component
public interface UcenterClient {
    @GetMapping("/educenter/ucenter-member/getMemberInfoByToken/{token}")
     R getMemberInfoByToken(@PathVariable("token") String token);//通过token传值
}
